package cc.catface.dao.biz.app;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@ApiModel
@TableName("ap_user_channel")
public class ApUserChannel {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("channel_id")
    @ApiModelProperty(value = "频道ID")
    private int channelId;
    @TableField("user_id")
    @ApiModelProperty(value = "用户ID")
    private long userId;
    @TableField("name")
    @ApiModelProperty(value = "频道名称")
    private String name;
    @TableField("ord")
    @ApiModelProperty(value = "排序")
    private int ord;
    @TableField("created_time")
    @ApiModelProperty(value = "创建时间[yyyy-MM-dd HH:mm:ss]")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;

}
